﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Backend.Data.Entities
{
    public class Organigrama: BaseEntity
    {
        public string Alias { get; set; }
        public string Name { get; set; }

        #region autoreferencia Organigrama 0.1 to 0.*
        public Guid? ParentId { get; set; } // 0.1 to 0.*
        public virtual Organigrama Parent { get; set; } // 0.1 to 0.*
        public virtual ICollection<Organigrama> Organigramas { get; set; } // 0.* to 0.1
        #endregion

        public virtual ICollection<GeoReferenciaOrganigrama> GeoReferenciaOrganigramas { get; set; } // 0.* to 1
    }
}
